package com.itstherules.jmsunit.expectation.xml.comparison;

import org.custommonkey.xmlunit.Diff;

public final class XmlSimilarExpectation extends BaseXmlExpectation {

	public XmlSimilarExpectation(String expected) {
		super(expected, new IsSimilar());
	}
	
	private static final class IsSimilar implements DiffQuestion {
		public boolean answer(Diff diff) {
			return diff.similar();
		}
	}

}
